<?php
//require_once  __DIR__ . '/includes/authenticate.php';


if (isset($_POST['season'])) {

include_once './db_bb_connect.php';

$season = $_POST['season'];

$sql = "INSERT INTO seasons (season)
VALUES ('$season')";

if ($db->query ($sql)) {
	echo "Season $season succesfully added";
} else {
	echo "Error: " . $sql . "<br>" . $db->error;
}


}
?>

